import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

export default defineConfig({
  base: './',css: {
    preprocessorOptions: {
      scss: {
        additionalData: `@import "./src/assets/scss/index.scss";`
      }
    }
  },
  plugins: [vue()],
  build: {
    assetsDir: 'assets', // 定义资源存放目录
    rollupOptions: {
      input: {
        main: './index.html' // 明确入口文件
      }
    }
  }
})